package com.gzbit.calculator.simplefactory.bll;

//完整业务逻辑类
public abstract class Operation {
    protected int numberA, numberB;

    public void setValue(int numberA, int numberB) {
        /*if (numberA < 100 || numberA > 200) {
            throw new Exception("数据不满足要求！");
        }*/
        this.numberA = numberA;
        this.numberB = numberB;
    }

    public abstract int getResult();
}
